function ListNode(val) {
    this.val = val;
    this.next = null;
}
var Test =  function (node) {

    let newHead = head;
    let pre = head;
    while (pre.next != null) {
        if (pre.val == node.val) {

        }
    }
}
let head = new ListNode(1)
head.next = new ListNode(2)
head.next.next = new ListNode(3)
head.next.next.next = new ListNode(4)
console.log(Test(5))
